<template>
  <div class="Myself">
    <van-row type="flex" class="items">
      <van-col span="12">
        <div class="head_left" >
          <van-image round cover width="7rem" height="7rem" src="https://img.yzcdn.cn/vant/cat.jpeg"/>
          <div class="name">
            <div class="usename">admin</div>
            <div>欢迎~</div>
          </div>
        </div>
      </van-col>
      <van-col offset="4" span="8">
        <div class="head_right">
          <van-button round type="info" to="/Login">退出登录</van-button>
        </div>
      </van-col>
    </van-row>
    <div class="setting">
      <div class="sethead" style="border-bottom:1px #eee solid">
        <h2 style="text-align: left;margin:10px">个人设置</h2>
      </div>
      <van-cell class="item" is-link  to="/House">房屋绑定</van-cell>
      <van-cell class="item" is-link  to="/AddressList">管理我的收货地址</van-cell>
      <van-cell class="item" is-link  to="/HisMaintain">保修历史</van-cell>
      <van-cell class="item" is-link  @click="checknew">检查版本更新</van-cell>
      <van-cell class="item" is-link  to="/Feedback">意见反馈</van-cell>
    </div>
    <buttom-Tabbar />
  </div>
</template>

<script>
import Vue from 'vue'
import ButtomTabbar from '../../components/ButtomTabbar'
import { Col, Row, Image as VanImage, Button, cell, Toast } from 'vant'
Vue.use(Col).use(Row).use(VanImage).use(Button).use(cell).use(Toast)
export default{
  name: 'Myself',
  components: {
    'buttom-Tabbar': ButtomTabbar
  },
  data () {
    return {
    }
  },
  methods: {
    checknew () {
      Toast('您已经是最新的版本')
    }
  }
}
</script>

<style scoped>
.head_left{
  display:flex;
  margin: 50px 0 0 40px;
}
.head_right{
  margin: 60px 10px 0 0;
}
.name{
  margin: 12px 0 0;
  color: #fff;
}
.usename{
  width: 60px;
  font-size: 14px;
  color: #fff;
  font-weight: 800;
}
.item{
  margin:18px;
}
.items{
  width: 608;
  height: 370px;
  background:url('../../assets/style/img/注册.jpg');
}
.setting{
}
.sethead{
  margin: 0 0 0 5px;
}
</style>
